package com.czn.service;

import com.czn.entity.User;
import com.czn.vo.ActiveUser;
import com.czn.vo.ResponseResult;
import org.beetl.sql.core.engine.PageQuery;

import javax.servlet.http.HttpSession;

/**
 * @author ChenZeNan
 * @create 2021-04-14 19:15
 */
public interface IUserService {
    ResponseResult checkUser(User user, HttpSession session);

    ResponseResult registUser(ActiveUser activeUser);

    PageQuery<User> findUserList(Integer pageNo, Integer pageSize, String username);

    ResponseResult addUser(User user);

    ResponseResult editUser(User user);

    User findUserById(Integer id);

    ResponseResult deleteUserById(Integer id);
}
